package cate.game.rank.po;

import cate.game.role.RoleSnapshot;
import cate.game.role.res.guild.po.GuildPO;
import easy.java.dev.note.NoteField;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Getter
public class GuildRank {
    @NoteField("协会uid")
    public String guildUid;
    @NoteField("服务器ID")
    public int srvId;
    @NoteField("协会名")
    public String guildName;
    @NoteField("会长信息")
    public RoleSnapshot owner;
    @NoteField("等级")
    public int level;
    @NoteField("总战力")
    public long power;
    @NoteField(value = "成员数量")
    public int memberNum;
    @NoteField(value = "成员上限")
    public int memberLimit;

    public GuildRank(GuildPO guild) {
        this.level = guild.basic.level;
        this.power = guild.basic.power;
        this.memberNum = guild.basic.memberNum;
        this.memberLimit = guild.basic.memberLimit;
        this.srvId = guild.basic.srvId;
        this.guildName = guild.basic.guildName;
    }
}
